import java.util.Random;

public class HW_2_copyStr {
    public static void main(String[] args) {
        int[] arr = new int[]{1,2,3,4,5};
        int[] arr1 = new int[]{6,7,8,9,10};
        Random r=new Random();
        int[] arr2=new int[arr.length];
        for (int i = 0; i < arr.length; i++) {
            int ra=r.nextInt(2);
            if(ra==0){arr2[i]=arr[i];}
            else{arr2[i]=arr1[i];}
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr2[i]+" ");
        }
    }
}
